package cn.tedu.ymg.product.pojo.param;

import lombok.Data;
import org.springframework.validation.annotation.Validated;


import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Validated
public class SubscribeAddNewParam implements Serializable {

    @NotNull(message = "您当前未登录！")
    private String username;

    @NotEmpty(message = "手机号不能为空！")
    @Size(max = 11,min = 11,message = "请输入11位手机号")
    @Pattern(regexp = "[0-9]{11}", message = "请输入11位数字手机号码")
    private String phone;
    private String type;
    private Long userId;
    private String orderNumber;
    private LocalDateTime creationTime;
    private String name;
    private String budget;
}

